module.exports = function (array, t, img) {
  let is = true;
  img ? img = img : img = captureScreen(); // 截图
  for (let item of array) {
    const { x, y, c } = item;
    if (!images.detectsColor(img, c, x, y, t)) {
      is = false
      break;
    }
  }
  return is;
}
